package com.sky.mapper;


import com.sky.entity.Dish;
import com.sky.entity.SetmealDish;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SetmealDishMapper {

    /**
     * 根据菜品id查询套餐
     * @param ids
     * @return
     */
    List<Long> findSetmealfindByDishIds(List<Long> ids);

    /**
     * 根据套餐id查询菜品和套餐的关系
     * @param setmealId
     * @return
     */
    List<SetmealDish> findSetmealDishBySetmealId(Long setmealId);

    /**
     * 添加菜品套餐关系
     * @param setmealDishes
     */


    void addSetmealDish(List<SetmealDish> setmealDishes);

    void delBySetmealId(Long id);

    void updateByDish(Dish dish);
}
